package com.gingko.duominuo.data.source.local.dao

import androidx.room.*
import com.gingko.duominuo.data.model.JobWorkVo
import com.gingko.duominuo.data.model.NameMappingVo


@Dao
interface NameMappingDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertNameMapping(vararg nameMappingVo: NameMappingVo): List<Long>

    @Query("select * from name_mapping where `group` == :group")
    suspend fun queryNameMappingByGroup(group: String): List<NameMappingVo>?

    @Query("DELETE FROM name_mapping")
    suspend fun deleteAll()

}